import type { OrderStatus } from '@/enum'
import type { orderInfo } from './order'
import type { Medicines } from './room'

// 药品订单 支付药款
export type MedicinesParams = {
  prescriptionId: string
  couponId?: string
  useCoupon?: 0 | 1
}
export type Medicine = Medicines & {
  amount: string
  avatar: string
  prescriptionFlag: 0 | 1
}
export type MedicinesRes = {
  id: string
  pointDeduction: number
  couponDeduction: number
  couponId: string
  payment: number
  expressFee: number
  actualPayment: number
  medicines: Medicine[]
}
export type OrderDetail = {
  id: string
  orderNo: string
  type: 4
  createTime: string
  prescriptionId: string
  status: OrderStatus
  statusValue: string
  medicines: Medicine[]
  countDown: number
  addressInfo: orderInfo
  expressInfo: {
    content: string
    time: string
  }
  payTime: string
  paymentMethod?: 0 | 1
  payment: number
  pointDeduction: number
  couponDeduction: number
  expressFee: number
  actualPayment: number
  roomId: string
}
